package main
import (
	"fmt"
)
func twoSum(nums []int, target int) []int {
//  var int first_num= 0
//  var int second_num = 0
 for i:=0;i<len(nums);i++{
	for j:=i;j<len(nums);j++{
		if nums[i]+nums[j]==target&&i!=j{
			return []int{i,j}
		}
	}
	 fmt.Println(i,nums[i])
 }
 var ret []int
 return ret
}
func  main()  {
	defer fmt.Println("run after function completes")
	nums := []int {2,7,10,15,11}
	var target int = 21
	fmt.Println(len(nums))
	// nums[0]=1
	// nums[1]=2
	// nums[2]=3
	var sums []int=twoSum(nums,target)
	fmt.Println(sums)
}